{% extends 'back/Content.html' %}
{% block content %}

    <link rel="stylesheet" type="text/css" href="/ueditor/UE/third-party/SyntaxHighlighter/shCoreDefault.css">
    <script type="text/javascript" src="/ueditor/UE/third-party/SyntaxHighlighter/shCore.js"></script>
    <script type="text/javascript" src="/ueditor/UE/ueditor.config.js"></script>
    <script type="text/javascript" src="/ueditor/UE/ueditor.all.min.js"></script>
    <script type="text/javascript" src="/ueditor/UE/lang/zh-cn/zh-cn.js"></script>

    <script type="text/javascript">
        var ue = UE.getEditor('editor');
        SyntaxHighlighter.all();
    </script>
    <div class="page-title">
        <div class="title-env">
            <h1 class="title">添加内容</h1>
        </div>
        <div class="breadcrumb-env">
            <ol class="breadcrumb bc-1">
                <li>
                    <a href={% url 'index' %}><i class="fa-home"></i>主页</a>
                </li>
                <li class="active">
                    <strong>添加内容</strong>
                </li>
            </ol>
        </div>

    </div>

    <div class="row">
        <div class="col-sm-12">

            <div class="panel panel-default">
                <div class="panel-body">
                    <form role="form" class="form-horizontal" method="post">
                        <input type="hidden" name="data" value="addcontent">
                        <div class="form-group">
                            <label class="col-sm-1 control-label" >题目</label>
                            <div class="col-sm-11">
                                <input class="form-control" type="text" name="title"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-1 control-label" >类别</label>
                            <div class="col-sm-11">
                                <select class="form-control" name="leibie">
                                    <option value="通知公告">通知公告</option>
                                    <option value="质量动态">质量动态</option>
                                    <option value="消费指南">消费指南</option>
                                    <option value="行业资讯">行业资讯</option>
                                </select>
                            </div>
                        </div>

                        <div class="form-group-separator"></div>

                        <div class="form-group">
                            <label class="col-sm-1 control-label">内容</label>

                            <div class="col-sm-11">
                                <script id="editor" type="text/plain" name="context"  style="width:100%;height:500px;">
                                </script>
                            </div>
                        </div>
                        <div class="form-group-separator"></div>
                        <div class="form-group">
                            <label class="col-sm-1"></label>
                            <div class="col-sm-10">
                                <button class="btn btn-success" type="submit">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

    <!-- Main Footer -->
    <!-- Choose between footer styles: "footer-type-1" or "footer-type-2" -->
    <!-- Add class "sticky" to  always stick the footer to the end of page (if page contents is small) -->
    <!-- Or class "fixed" to  always fix the footer to the end of page -->


{% endblock %}
